package com.zhibang.sinocare.report.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhibang.sinocare.common.vo.ZhibiaoVo;
import com.zhibang.sinocare.report.dao.ZhibiaoMapper;
import com.zhibang.sinocare.report.service.ZhibiaoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ZhibiaoServiceImpl extends ServiceImpl<ZhibiaoMapper,ZhibiaoVo> implements ZhibiaoService {
    @Resource
    private ZhibiaoMapper zhibiaoMapper;

    @Override
    public Page selectListPage(int current, int number, ZhibiaoVo search) {
        System.out.println(search);
        Page page = new Page(current, number);
        return page.setRecords(zhibiaoMapper.queryZB(page, search));
    }

    @Override
    public List<ZhibiaoVo> selectZhibiao(ZhibiaoVo zhibiaoVo) {
        return zhibiaoMapper.selectZhibiao(zhibiaoVo);
    }

}
